#include <stdio.h>

/**
 * 字符串拼接
 */
char * mystrcat(char *dest, char *src)
{
    char *p = dest;
    while(*dest){
        dest++;
    }
    
    while(*src) {
        *dest = *src;
        dest++;
        src++;
    }

    *dest = '\0';

    return p;
}

int main(int argc, char *argv[])
{
    char src[] = "I am the man.";
    char dest[100] = "beleve it or not ";

    char *p = NULL;
    p = mystrcat(dest, src);

    printf("%s\n", p);
    return 0;
}
